package com.markhsiu.httpserver.event;

public class HttpProtocol {

	protected static final String HOST = "Host";
	protected static final String CONNECTION = "Connection";
    public static final String CONTENT_TYPE = "Content-Type";
    public static final String CONTENT_DISPOSITION = "Content-Disposition";
    public static final String CONTENT_LENGTH = "Content-Length";
    
	protected static final String ACCEPT_LANGUAGE = "Accept-Language";
	protected static final String ACCEPT_ENCODING = "Accept-Encoding";
	protected static final String ACCEPT = "Accept";
	protected static final String USER_AGENT = "User-Agent";
	
    public static final String FORM_DATA = "form-data";
    public static final String ATTACHMENT = "attachment";//file attachment
    public static final String MULTIPART = "multipart/";//content type 
    public static final String MULTIPART_FORM_DATA = "multipart/form-data";//multipart forms
    public static final String MULTIPART_MIXED = "multipart/mixed";//multiple uploads.
    
    // \r\n
    public static final byte ASCII_CR  = 0x0D;//\r 13
	public static final byte ASCII_LF = 0x0A;//\n 10
    public static final byte ASCII_DASH = 0x2D;//(-)
	public static final byte[] CRLF = {ASCII_CR,ASCII_LF};//\r\n[\r\n]
	public static final byte[] LFCR = {ASCII_LF,ASCII_CR};//\r[\n\r]\n
}
